﻿@{
    ViewBag.Title = "Quản Lý Phòng Ốc";
    Layout = "~/Views/Shared/_LayoutNVQuanLy.cshtml";
}
<input type="hidden" id="menu_check" value="2" />

<div class="onecolumn tks">
    <div class="header">
        <span>
            <span class="ico gray spreadsheet"></span>
            Quản lý tầng khách sạn
        </span>
    </div>
    <div class=" clear"></div>
    <div class="content contentTKS">
        <table class="display dataTable">
            <thead>
                <tr role="row">
                    <th style="width: 150px;">Tên</th>
                    <th>Mã tầng</th>
                    <th>Quản lý</th>
                </tr>
            </thead>
            <tbody role="alert" aria-live="polite" aria-relevant="all">
                @{foreach (var TKS in ViewBag.TKS)
                  {
                    <tr class="odd">
                        <td>
                            <div class="nonDisplay" id="nameT@{@TKS.maTang}">
                                <input type="text" class="tenTang T@{@TKS.maTang}" value="@TKS.tenTang"/>
                            </div>
                            <div id="nameTT@{@TKS.maTang}">@TKS.tenTang</div>
                        </td>
                        <td>
                            <div class="nonDisplay">
                                <input type="text" class="maTang" value="@TKS.maTang"/>
                            </div>@TKS.maTang</td>
                        <td>
                            <div>
                                <img class="editT" id="@TKS.maTang" src="../Images/icon_edit.png">
                                <img class="deleteT" id="@TKS.maTang" src="../Images/icon_delete.png">
                                <img class="save_editT nonDisplay" id="@TKS.maTang" src="../Images/checkmark2.png">
                                <img class="cancel_editT nonDisplay" id="@TKS.maTang" src="../Images/cross.png">
                            </div>
                        </td>
                    </tr>
                  }
                }
            </tbody>
        </table>
    </div>
    <ul class="uibutton-group">
        <a class="uibutton add" title="Thêm tầng mới">Thêm tầng mới</a>
    </ul>
    <div class="loading"></div>
    <div class="addItem nonDisplay">
        <h3>Mã tầng</h3>
        <input type="text" id="maTangNew" value="" />
        <h3>Tên tầng</h3>
        <input type="text" id="tenTangNew" value="" />
        <a class="uibutton saveT" title="Thêm tầng mới">Lưu</a>
        <a class="uibutton cancelT" title="Hủy tầng mới">Hủy</a>
    </div>
</div>

<div class="onecolumn tks">
    <div class="header">
        <span>
            <span class="ico gray spreadsheet"></span>
            Quản lý dãy khách sạn
        </span>
    </div>
    <div class=" clear"></div>
    <div class="content contentDKS">
        <table class="display dataTable">
            <thead>
                <tr role="row">
                    <th style="width: 150px;">Tên</th>
                    <th>Mã dãy</th>
                    <th>Quản lý</th>
                </tr>
            </thead>
            <tbody>
                @{foreach (var DKS in ViewBag.DKS)
                  {
                    <tr class="odd">
                        <td>
                            <div class="nonDisplay" id="nameD@{@DKS.maDay}">
                                <input type="text" class="tenDay D@{@DKS.maDay}" value="@DKS.tenDay"/>
                            </div>
                            <div id="nameDD@{@DKS.maDay}">@DKS.tenDay</div>
                        </td>
                        <td>
                            <div class="nonDisplay">
                                <input type="text" class="maDay" value="@DKS.maDay"/>
                            </div>@DKS.maDay</td>
                        <td>
                            <div>
                                <img class="editD" id="@DKS.maDay" src="../Images/icon_edit.png">
                                <img class="deleteD" id="@DKS.maDay" src="../Images/icon_delete.png">
                                <img class="save_editD nonDisplay" id="@DKS.maDay" src="../Images/checkmark2.png">
                                <img class="cancel_editD nonDisplay" id="@DKS.maDay" src="../Images/cross.png">
                            </div>
                        </td>
                    </tr>
                  }
                }
            </tbody>
        </table>
    </div>
    <ul class="uibutton-group">
        <a class="uibutton add" title="Thêm tầng mới">Thêm dãy mới</a>
    </ul>
    <div class="loading"></div>
    <div class="addItem nonDisplay">
        <h3>Mã dãy</h3>
        <input type="text" id="maDayNew" value="" />
        <h3>Tên dãy</h3>
        <input type="text" id="tenDayNew" value="" />
        <a class="uibutton saveD" title="Thêm dãy mới">Lưu</a>
        <a class="uibutton cancelD" title="Hủy dãy mới">Hủy</a>
    </div>
</div>


<div class=" clear"></div>
<div class="onecolumn pks">
    <div class="header">
        <span>
            <span class="ico gray spreadsheet"></span>
            Quản lý phòng khách sạn
        </span>
    </div>
    <div class=" clear"></div>
    <div class="content contentPKS">
        
    </div>

    <ul class="uibutton-group">
        <a class="uibutton add" title="Thêm tầng mới">Thêm phòng mới</a>
    </ul>
    <div class="loading"></div>
    <div class="addItem nonDisplay">
        <h3>Mã phòng</h3>
        <input type="text" id="maPhongNew" value="" />
        <h3>Hạng phòng</h3>
        <select id="maHangPhongNew">
            @foreach (var P_HP in ViewBag.HKS)
            {
                <option value="@P_HP.maHangPhong" >@P_HP.tenHangPhong</option>
            }
        </select>
        <h3>Loại phòng</h3>
        <select id="maLoaiPhongNew">
            @foreach (var L_HP in ViewBag.LKS)
            {
                <option value="@L_HP.maLoaiPhong" >@L_HP.tenLoaiPhong</option>
            }
        </select>
        <h3>Tầng</h3>
        <select id="maTangPhongNew">
            @foreach (var T_HP in ViewBag.TKS)
            {
                <option value="@T_HP.maTang" >@T_HP.tenTang</option>
            }
        </select>
        <h3>Dãy</h3>
        <select id="maDayPhongNew">
            @foreach (var D_HP in ViewBag.DKS)
            {
                <option value="@D_HP.maDay" >@D_HP.tenDay</option>
            }
        </select>
        <a class="uibutton saveP" title="Thêm phòng mới">Lưu</a>
        <a class="uibutton cancelP" title="Hủy phòng mới">Hủy</a>
    </div>
</div>
